//
//  LLProfileViewModel.m
//  lrlzapp
//
//  Created by dl on 16/2/22.
//  Copyright © 2016年 lrlz. All rights reserved.
//

#import "LLProfileViewModel.h"
#import "LLLoginViewModel.h"

@interface LLProfileViewModel ()
@property(nonatomic, strong, readwrite) NSArray *profileTableDic;
@end

@implementation LLProfileViewModel

- (void)initialize {
    self.title = @"个人中心";
    self.profileTableDic = @[
            @[
                    @{@"img" : @"profile_discount_code", @"title" : @"优惠码"},
                    @{@"img" : @"prodile_comein_out_details", @"title" : @"收支明细"}
            ],
            @[
                    @{@"img" : @"profile_about_us", @"title" : @"关于我们"},
                    @{@"img" : @"profile_feedback", @"title" : @"意见反馈"}
            ],
            @[
                    @{@"img" : @"profile_contact_service", @"title" : @"联系客服"}
            ]
    ];

    self.toSettingCommand = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id _) {
        NSLog(@"to setting clicked");
        LLLoginViewModel *loginViewModel = [[LLLoginViewModel alloc] init];
        [self.navService pushViewModel:loginViewModel animated:YES];
        return [RACSignal empty];
    }];
    self.didSelectCommand = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(NSIndexPath *indexPath) {
        NSLog(@"indexPath:%ld, %ld", indexPath.section, indexPath.row);
        return [RACSignal empty];
    }];
}

@end
